<%@ Page Language="C#" MasterPageFile="~/AdminCP/AdminCP.master" AutoEventWireup="true"
     CodeFile="Advertisements.aspx.cs" Inherits="AdminCP_Advertisements" ValidateRequest="false" %>

<%@ Register Src="../include/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>

<asp:Content ID="TitleAdvertisements" ContentPlaceHolderID="CphTitle" runat="Server">
    <%=Resources.Lang.admincpAdvertisements%>
</asp:Content>
<asp:Content ID="ContentAdvertisements" ContentPlaceHolderID="CphBody" runat="Server">
    <div id="middle">
        <div id="left-column">
            <a href="#" class="link">Test </a>
            <ul class="nav">
                <li><a href="#">Test </a></li>
                <li class="last"><a href="#">Test </a></li>
            </ul>
        </div>
        <div id="center-column">
            <div class="top-bar">
                <a class="button" href="Advertisements.aspx?do=add"><%=Resources.Lang.Add %></a>
                <h1>
                    <%=Resources.Lang.admincpAdvertisements%>
                </h1>
            </div>
            <br />
            <br />
            <br />
            <div class="table">
                <img src="AdminImages/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                <img src="AdminImages/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                <table class="listing" cellpadding="0" cellspacing="0">
                    <tr>
                        <th class="first">
                            ID</th>
                        <th>
                            <%=Resources.Lang.Image%>
                        </th>
                        <th>
                           Url
                        </th>                        
                        <th class="last">
                            <%=Resources.Lang.Action %>
                        </th>
                    </tr>
                    <asp:Repeater ID="rptAdvertisements" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class="first" width="7%">
                                    <%#DataBinder.Eval(Container.DataItem, "ID")%>
                                </td>
                                <td width="35%">
                                    <%#DataBinder.Eval(Container.DataItem,"Image")%>
                                </td>
                                <td width="35%">
                                    <%#DataBinder.Eval(Container.DataItem,"Url")%>
                                </td>                                
                                <td class="last" width="10%">
                                    <a href="Advertisements.aspx?do=edit&aid=<%#DataBinder.Eval(Container.DataItem,"ID")%>"><img src="AdminImages/edit-icon.gif" /></a>&nbsp;
                                    <a href="Advertisements.aspx?do=del&aid=<%#DataBinder.Eval(Container.DataItem,"ID")%>"><img src="AdminImages/hr.gif" /></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="bg">
                                <td class="first">
                                    <%#DataBinder.Eval(Container.DataItem,"ID")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem,"Image")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem,"Url")%>
                                </td>                                
                                <td class="last">
                                    <a href="Advertisements.aspx?do=edit&aid=<%#DataBinder.Eval(Container.DataItem,"ID")%>"><img src="AdminImages/edit-icon.gif" /></a>&nbsp;
                                    <a href="Advertisements.aspx?do=del&aid=<%#DataBinder.Eval(Container.DataItem,"ID")%>"><img src="AdminImages/hr.gif" /></a>
                                </td>
                            </tr>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                </table>
                <div class="select">
                    <uc1:Pager ID="Pager1" runat="server" />
                </div>
            </div>
            <br />
            <br />
            <asp:PlaceHolder ID="PlaceHolderBottom" runat="server"></asp:PlaceHolder>
        </div>
        <div id="right-column">
            <strong class="h">
                <%=Resources.Lang.admincpInfo %>
            </strong>
            <div class="box">
                <%=Resources.Lang.admincpAdvertisementsInfo%>
            </div>
        </div>
    </div>
</asp:Content>

